package com.ita.im.model;

import java.io.Serializable;
import java.util.Map;

public class Unit implements Serializable {
	private static final long serialVersionUID = 1L;
	private UnitType type;
	private Map<String, Object> value;
	private boolean success;

	public Unit(UnitType type, Map<String, Object> value, boolean success) {
		this.type = type;
		this.value = value;
		this.success = success;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public UnitType getType() {
		return type;
	}

	public void setType(UnitType type) {
		this.type = type;
	}

	public Map<String, Object> getValue() {
		return value;
	}

	public void setValue(Map<String, Object> value) {
		this.value = value;
	}

	public Unit() {
		super();
	}
}
